package com.oa.modules.approvalsec1.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.oa.modules.approvalsec1.entity.TeacherQualificationEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 教师资格证认定
 */
@Mapper
public interface TeacherQualificationDao extends BaseMapper<TeacherQualificationEntity> {

    long findPage(@Param("params")Map<String, Object> params);

    List<TeacherQualificationEntity> findRecords(IPage page, @Param("params")Map<String, Object> params);

    void saveFile(TeacherQualificationEntity teacherQualification);

    TeacherQualificationEntity selectTeacherQualificationEntity(TeacherQualificationEntity teacherQualification);

    void saveOther(TeacherQualificationEntity teacherQualification);

    void deleteByUserAndType(TeacherQualificationEntity teacherQualification);

    List<TeacherQualificationEntity> queryByUser(String createOper);

    void updateByIdx(TeacherQualificationEntity teacherQualification);

    void settle(String id);

    void reject(Map<String, Object> map);

    void yushen(String id);

    List<TeacherQualificationEntity> queryAllAdopt(TeacherQualificationEntity teacherQualification);
}
